
// 快捷访问state中的数据
const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 快捷访问token
  token: state => state.user.token,
  username: state => state.user.userInfo.username,
  // 快捷访问地址
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 路由权限快捷访问
  routes: state => state.permission.routes,
  // 按钮权限快捷方法
  roles: state => state.user.userInfo.roles
}
export default getters
